package org.xczy.order.config;

import feign.Logger;
import feign.Request;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.xczy.order.intercptor.feign.FeignAuthQuestInterceptor;

@Configuration
public class OpenFeignConfig {
  @Bean
  public Logger.Level feignLoggerLevel(){
    return Logger.Level.FULL;
  }

  @Bean
  public Request.Options options() {
    return new Request.Options(5000, 10000);
  }
  @Bean
  public FeignAuthQuestInterceptor feignAuthQuestInterceptor(){
    return new FeignAuthQuestInterceptor();
  }
}
